<?php
function tfoot($colspan, $div_id = "pager"){
	$data = '
	<tfoot>
		<tr>
			<td colspan="'.$colspan.'">
				<div id="'.$div_id.'" class="pager">
				<form>
					<img src="../templates/default/admin/images/first.png" class="first"/>
					<img src="../templates/default/admin/images/prev.png" class="prev"/>
					<input type="text" class="pagedisplay"/>
					<img src="../templates/default/admin/images/next.png" class="next"/>
					<img src="../templates/default/admin/images/last.png" class="last"/>
					<select class="pagesize">
						<option selected="selected"  value="10">10</option>
						<option value="20">20</option>
						<option value="30">30</option>
						<option value="40">40</option>
					</select>
				</form>
				</div>
			</td>
		</tr>
	</tfoot>';
	return $data;
}

function trimthem($data){
	$ltrim = ltrim($data, "<p>");
	$rtrim = rtrim($ltrim, "</p>");
	$str = $rtrim;
	
	return $str;
}

function cleanitup($string){
	$a = preg_replace("/[^A-Za-z0-9]/", "_", $string);
	return $a;
}

function limitclear($string, $length){
    $str = substr(strip_tags($string), 3, $length);
    return $str;
}
?>